import { EChartComponent } from '@/components/ECharts'
import { browseCategoriesOptions } from './options'

export const BrowseCategories = (props: any) => {
	return (
		<div className="flex-1 h-full">
			{props.browseCategories ? (
				<EChartComponent
					option={browseCategoriesOptions(props.browseCategories)}
					height="100%"
				/>
			) : undefined}
		</div>
	)
}
